<?php
	require_once('config.language.php');
	define('ROOT_WEB', 'http://localhost/taskman/');
	define('ROOT_FILESYSTEM', dirname(__FILE__) . "/../../");
	define('TEMPLATES_WEB', ROOT_WEB.'templates/');
	define('TEMPLATES_FILESYSTEM', ROOT_FILESYSTEM.'templates/');
	define('FRAMEWORK_WEB', ROOT_WEB.'framework/');
	define('FRAMEWORK_FILESYSTEM', ROOT_FILESYSTEM.'framework/');
	define('FRAMEWORK_CLASSES_FILESYSTEM', ROOT_FILESYSTEM.'framework/classes/');
	
	require_once(FRAMEWORK_CLASSES_FILESYSTEM . "class.textfile.php");
	require_once(FRAMEWORK_CLASSES_FILESYSTEM . "class.config.php");
	
	function getFrameworkObject($objectName, $p=null, $p2=null, $p3=null, $p4=null) {
		if(file_exists(FRAMEWORK_CLASSES_FILESYSTEM.'class.'.$objectName.'.php')) {
			require_once(FRAMEWORK_CLASSES_FILESYSTEM.'class.'.$objectName.'.php');
			$object = new $objectName($p, $p2, $p3, $p4);
			return $object;
		} else {
			return false;	
		}
	}
	
?>